<? $page_title='供应商报价' ?>
<? include "FASHION/page_header.phtml" ?>

<form  method="post" id="form1">
	<select name="supplier_id" id="supplier_id" onchange="$('#form1').submit()">
		<option value="">--以供应商搜报价--</option>
<{foreach item=s from=$suppliers}>
		<option value="<{$s.id}>"><{$s.name}></option>
<{/foreach}>
	</select>
	<input type="button" value="录入报价" class="button"
		onclick="location.href='<? url('supplier-quote/id/SPID') ?>'.replace('SPID',$('#supplier_id').val())"/> &nbsp; &nbsp;
	关键字: <input type="text" name="keyw" value="<?=fetch_a_string('keyw')?>" size="12" />
	<input type="submit" value="搜索" class="submit" />
</form>
<script>
$('select[name=supplier_id]').val('<?=fetch_a_int('supplier_id')?>');
</script>

<table class="list bar" cellpadding=0 cellspacing=0>
<tr class="nobg" >
	<th>供应商</th>
	<th>材料编号</th>
	<th>材料名称</th>
	<th>报价</th>
	<th>单位</th>
	<th>品牌</th>
	<th>规格</th>
	<th>时间</th>
</tr>
<{if $offers}>
<{foreach item=offer from=$offers}>
<TR class="row">
	<TD><{$offer.supplier_name}></TD>
	<TD class="nobr"><{$offer.sno}></TD>
	<TD><{$offer.name}></TD>
	<TD class="decimal fnum" style="text-align:right;"><{$offer.quote}></TD>
	<TD><{$offer.unit}></TD>
	<TD><{$offer.brand}></TD>
	<TD><{$offer.specific}></TD>
	<TD><?= date('Y-m-d', $offer.modtime) ?></TD>
</TR>
<{/foreach}>
<{/if}>
</TABLE>

<?= Html::pager($pager) ?>

<script language="JavaScript">

</script>

<? include "FASHION/page_footer.phtml" ?>
